package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyLifeCommentLikeMapper;
import com.laowang.project.system.domain.MyLifeCommentLike;
import com.laowang.project.system.service.MyLifeCommentLikeService;

/**
 * 评论点赞Service业务层处理
 *
 * @author laowang
 * @date 2023-04-25
 */
@Service
public class MyLifeCommentLikeServiceImpl implements MyLifeCommentLikeService {
    @Autowired
    private MyLifeCommentLikeMapper myLifeCommentLikeMapper;

    /**
     * 查询评论点赞
     *
     * @param id 评论点赞ID
     * @return 评论点赞
     */
    @Override
    public MyLifeCommentLike selectMyLifeCommentLikeById(Integer id) {
        return myLifeCommentLikeMapper.selectMyLifeCommentLikeById(id);
    }

    /**
     * 查询评论点赞列表
     *
     * @param myLifeCommentLike 评论点赞
     * @return 评论点赞
     */
    @Override
    public List<MyLifeCommentLike> selectMyLifeCommentLikeList(MyLifeCommentLike myLifeCommentLike) {
        return myLifeCommentLikeMapper.selectMyLifeCommentLikeList(myLifeCommentLike);
    }

    /**
     * 新增评论点赞
     *
     * @param myLifeCommentLike 评论点赞
     * @return 结果
     */
    @Override
    public int insertMyLifeCommentLike(MyLifeCommentLike myLifeCommentLike) {
        return myLifeCommentLikeMapper.insertMyLifeCommentLike(myLifeCommentLike);
    }

    /**
     * 修改评论点赞
     *
     * @param myLifeCommentLike 评论点赞
     * @return 结果
     */
    @Override
    public int updateMyLifeCommentLike(MyLifeCommentLike myLifeCommentLike) {
        return myLifeCommentLikeMapper.updateMyLifeCommentLike(myLifeCommentLike);
    }

    /**
     * 批量删除评论点赞
     *
     * @param ids 需要删除的评论点赞ID
     * @return 结果
     */
    @Override
    public int deleteMyLifeCommentLikeByIds(Integer[] ids) {
        return myLifeCommentLikeMapper.deleteMyLifeCommentLikeByIds(ids);
    }

    /**
     * 删除评论点赞信息
     *
     * @param id 评论点赞ID
     * @return 结果
     */
    @Override
    public int deleteMyLifeCommentLikeById(Integer id) {
        return myLifeCommentLikeMapper.deleteMyLifeCommentLikeById(id);
    }
}
